import type { ButtonMenuTypeCnEnum } from '@/const/enum'
import type { RouteRecordRaw } from 'vue-router'

export interface VerifyCodeDto {
    phone: string
}

export interface CaptchaImageDto {
    img: string
    msg: string
    uuid: string
    code: number
}

export interface PasswordLoginReqDto {
    username: string,
    platFrom: number,
    password: string,
    code: string,
    uuid: string
}

export interface FastLoginReqDto {
    username: string,
    platFrom: number,
    loginType: string,
    verifyCode: string
}


export interface LoginDto {
    phone: string
    password: string
    appId?: number
}
export interface RouteRecordMetaDto {
    noCache?: boolean
    btnChildren?: {
        btnPosition?: ButtonMenuTypeCnEnum
        btnEvent?: string
        path?: string
    }[]
    [key: string]: any
}
export type RouteRecordDto = RouteRecordRaw & {
    hidden?: boolean
    alwaysShow?: boolean
    children?: RouteRecordDto[]
    meta?: RouteRecordMetaDto
}
